﻿using System.Linq;
using NHibernate;
using NHibernate.Linq;
using SenileCoderMvc.Library.Models;

namespace SenileCoderMvc.Library.DataAccess.Queries
{
    public class GetAllItems<T> : IQueryObject<T>
        where T : IModel
    {
        public IQueryable<T> Query(ISession session)
        {
            return session.Query<T>();
        }
    }
}
